home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 31
/
Aminet 31 (1999)(Schatztruhe)[!][Jun 1999].iso
/
Aminet
/
comm
/
bbs
/
cnet5demo.lha
/
cnet
/
ircrexx
/
voicetrap.rexx
< prev
Wrap
OS/2 REXX Batch file
|
1999-03-23
|
641b
|
27 lines
/* ORC - TRAP JOIN */
/* do automatic voice on moderated channel, check no-voice list */
/* '/alias <password> trap1----005 voicetrap.rexx JOIN */
options results
parse arg orcport user cmd args
parse var user ':'nick'!'site
parse var args ':'args
fname = 'ram:novoice.txt'
voice = 1
if Open(fh, fname, 'r') then do
do while ~eof(fh) & (voice == 1)
if pos(readln(fh), user) then voice = 0
end
x = Close(fh)
end
if show('P', orcport) & (voice == 1) then do
address value orcport
cnetirccmd '/"'user' 'cmd' 'args
cnetirccmd '/mode 'args' +v 'nick
end